package configtable

var IsLoad bool

func InitializeAllXlsxData() {
	IsLoad = true
	AreaTableMgr_GetMe().LoadAreaTable("./config/excel/AreaTable.xlsx")
	NameConfigTableMgr_GetMe().LoadNameConfigTable("./config/excel/NameConfigTable.xlsx")
	NameTableMgr_GetMe().LoadNameTable("./config/excel/NameTable.xlsx")
}

func ReloadSingleXlsx(fileName string) {
	if !IsLoad {
		return
	}
	if fileName == "AreaTable.xlsx" {
		AreaTableMgr_GetMe().LoadAreaTable("../config/excel/AreaTable.xlsx")
	}
	if fileName == "NameConfigTable.xlsx" {
		NameConfigTableMgr_GetMe().LoadNameConfigTable("../config/excel/NameConfigTable.xlsx")
	}
	if fileName == "NameTable.xlsx" {
		NameTableMgr_GetMe().LoadNameTable("../config/excel/NameTable.xlsx")
	}
}
